<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>毕业答辩</title>
    <link rel="stylesheet" type="text/css" href="../static/css/top.css"/>
    <link rel="stylesheet" type="text/css" href="../static/layui/css/layui.css"/>
    <link rel="stylesheet" type="text/css" href="../static/css/footer.css"/>
    <link rel="stylesheet" type="text/css" href="../static/css/index.css"/>
</head>
<body>
<div id="top" class="layui-fluid layui-bg-black" style="height: 58px;">
    <div class="layui-row">
        <div class="layui-col-md2 layui-col-md-offset1">
            <img src="../static/img/logo-v3.png" style="width: 180px; height: 50px;">
        </div>
        <div class="layui-col-md4">
            <ul>
                <li><a href="#">首页</a></li>
                <li><a href="#">题库</a></li>
                <li><a href="#">面试</a></li>
                <li><a href="#">学习</a></li>
                <li><a href="#">求职</a></li>
                <li><a href="#">讨论区</a></li>
                <li><a href="#">发现</a></li>
            </ul>
        </div>
        <div class="layui-col-md2">
            <input type="text" name="search" id="search" placeholder="帖子、试题、试卷、公司、牛友"/>
            <a href="#"><i class="layui-icon layui-icon-search"></i></a>
        </div>
        <div class="layui-col-md3 ">
            <div class="z">
                <i class="layui-icon layui-icon-cellphone"></i>APP
                <span>|</span>
            </div>
            <div class="x">
                <i class="layui-icon layui-icon-template-1"></i>企业版
            </div>
            <div class="y">
                <a href="../front/login.html">登录/注册</a>
            </div>
        </div>
    </div>
</div>
<div class="mini-banner">
    <a href="#"><img src="../static/img/611956172_1566873548598_9DF5BF8A831B38A2135771AEF78EB358.jpg"></a>
</div>
<div class="more">
    <div class="more_top">
        <div class="more_top_r">
            <p><span style="color: orangered; font-size: 22px;">■</span>学校</p>
        </div>
        <div class="more_top_l">

        </div>
    </div>
    <div class="more_job">
        <div class="more_job_l">
            <p><span style="color: orangered; font-size: 22px;">■</span>课程</p>
        </div>
        <div class="more_job_r">
        </div>
    </div>
    <div class="more_date">
        <div class="more_date_l">
            <p><span style="color: orangered; font-size: 22px;">■</span>年份</p>
        </div>
        <div class="more_date_r">
            <div class="font_box">
                <p>2020</p>
            </div>
            <div class="font_box">
                <p>2019</p>
            </div>
            <div class="font_box">
                <p>2018</p>
            </div>
            <div class="font_box">
                <p>2017</p>
            </div>
        </div>
    </div>

</div>
<div class="menu-box">
    <div class="menu_left">
        最新
    </div>
</div>

<div class="module-body">

    <div id="test1" style="text-align: center;margin-left: 0px;"></div>
</div>


<div class="module_foot">
    <div class="text_box">
        <div class="edit">
            <a href="#"><i class="layui-icon layui-icon-edit"></i></a>
        </div>
        <h4>IT校招全国统一模拟笔试</h4>
        <p>全真模拟，准确评估，内推名企</p>
    </div>
    <div class="text_box">
        <div class="edit">
            <a href="#"><i class="layui-icon layui-icon-read"></i></a>
        </div>
        <h4>IT考前备战计划</h4>
        <p>最全备战攻略，专用考前突击</p>
    </div>
    <div class="text_box">
        <div class="edit">
            <a href="#"><i class="layui-icon layui-icon-date"></i></a>
        </div>
        <h4>IT校招/实习笔试日历</h4>
        <p>不错过任何一场重要考试</p>
    </div>
    <div class="text_box">
        <div class="edit">
            <a href="#"><i class="layui-icon layui-icon-tabs"></i></a>
        </div>
        <h4>校招日程汇总</h4>
        <p>你最想去的公司简历快截止啦</p>
    </div>
</div>

<!-- 尾部 -->
<div class="layui-fluid layui-bg-black">
    <div class="layui-row" style="height: 220px;">
        <div class="layui-col-md2 layui-col-md-offset2">
            <div id="ft_img">
                <img src="../static/img/app_download.png"
                     style="height: 110px; width: 110px;border: 8px solid dimgray;">
            </div>
            <div id="ft_font">
                <p>扫一扫，把题目装进口袋</p>
            </div>
        </div>
        <div id="ft_info" class="layui-col-md3" style="height: 220px;">
            <div id="web_name">
                牛客网，互联网必备求职神器
            </div>
            <div id="web_icon">
                <a href="#"><i class="layui-icon layui-icon-login-qq"></i></a>
                <a href="#"><i class="layui-icon layui-icon-login-wechat"></i></a>
                <a href="#"><i class="layui-icon layui-icon-login-weibo"></i></a>
            </div>
        </div>
        <div class="layui-col-md5">
            <ul class="links">
                <li>
                    <a href="#">关于我们</a>
                </li>

                <li>
                    <a href="#">加入我们</a>
                </li>

                <li>
                    <a href="#">意见反馈</a>
                </li>

                <li>
                    <a href="#">企业服务</a>
                </li>

                <li>
                    <a href="#">联系我们</a>
                </li>

                <li>
                    <a href="#">免责声明</a>
                </li>
                <li>
                    <a href="#">友情链接</a>
                </li>
            </ul>
            <div id="main">
                <p>公司地址：北京市朝阳区大屯路东金泉时代广场3单元</p>
                <p>联系方式：010-60728802(电话) admin@nowcoder.com </p>
                <p>牛客科技©2019 All rights reserved</p>
                <p>京ICP备14055008号-4增值电信业务经营许可证</p>
                <p><img src="../static/img/ghs.png">京公网安备 11010502036488号</p>
            </div>
        </div>

    </div>
</div>

<script src="../static/js/jquery-3.3.1.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../static/layui/layui.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
    $(function () {
        $.get('/school_project/school/selectAll', function (res) {
            console.info(res)
            for (var i = 0; i < res.length; i++) {
                console.info(res[i].schoolImg)
                var str = '<div class="img_box">';
                str += '<a href="#"><img src="../upload/' + res[i].schoolImg + '" style="width: 70px; height: 60px;"></a>'
                str += '</div>';
                $('.more_top_l').append(str);
            }
            for (var i = 0; i < res.length; i++) {
                // console.info(res.data[j])
                var schoolId=res[i].schoolId;
                var schoolName=res[i].schoolName
                var schoolImg=res[i].schoolImg
                console.info(schoolName)
                $.ajax({
                    type:"GET",
                    url:"/school_project/course/selectAllBySchoolId",
                    data:{"schoolId":schoolId},
                    async: false,
                    success:function (course) {
                        for (var j=0;j<course.length;j++){
                            var courseId=course[j].courseId;
                            console.log("courseId:"+courseId)
                            var str='<div class="content-item-brief">';
                            str += '<h4>' + schoolName + '</h4>'
                            str+='<h5>' + course[j].courseName + '试题合集</h5>'
                            str += '<div class="company_img">';
                            str += '<a href="detail.html?schoolId='+schoolId+'&courseId='+course[j].courseId+'"><img src="../upload/' + schoolImg + '"style="width: 70px; height: 60px;"></a> </div>'
                            str += '<div class="yyy">★★★☆☆</div>'
                            $('.module-body').append(str)
                        }
                    },
                    dataType:"json"
                });
            }
        }, 'json');

        $.get('/school_project/course/selectAll', function (res) {
            console.info(res)
            for (var i = 0; i < res.length; i++) {
                var name = res[i].courseName;
                var str = '<div class="font_box">'
                str += '<p>' + name + '</p>'
                str += '</div>';
                $('.more_job_r').append(str);
            }
        }, 'json')

    })
    layui.use(['rate', 'form', 'laypage'], function () {
        var rate = layui.rate;
        var laypage = layui.laypage;
        var form = layui.form;
    })
</script>
</body>
</html>
